package com.tx.utils;

import java.text.DecimalFormat;

/**
 * @Author ChenZhaoHui
 * @Date 2022/6/29 11:47
 */

public class CalculateUtils {
    /***
     * 整数相除 保留一位小数
     * @param a
     * @param b
     * @return
     */
    public static String division(long a ,long b){
        String result = "";
        float num =(float)a/b;

        DecimalFormat df = new DecimalFormat("0.00");

        result = df.format(num);

        return result;

    }
}
